import * as math from 'mathjs'

/**
 * 格式化价格精度计算
 * @param {*} value 
 */
export const formatePrice = (value) => {
    const precision = 14
    return Number(math.format(value, precision))
}